<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<div class="modal-dialog">
    <div class="modal-content">
        <div class="modal-header yellow_bg">
            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
            <h4 class="modal-title" id="myModalLabel0">
                ￥充值
            </h4>
        </div>
        <div class="modal-body">


            <div class="czje">
                    <ul>
                        <li><span>+5</span>元</li>
                        <li class="chek"><span>+10</span>元</li>
                        <li><span>+15</span>元</li>
                    </ul>
                    <ul>
                        <li><span>+20</span>元</li>
                        <li class="tixing">体验不用更多哟！</li>
                    </ul>
                    <input type="image" name="button" class="czbtn" id="despoit_but" value=" " src="../wx/images/tzbtn.jpg">
            </div>
        </div>

    </div>
    <!-- /.modal-content -->
</div>
<script>
    var moneyNum=0;
    var money = "5";
    $(".czje ul li.chek").removeClass("chek");
    $(".czje ul li").click(function () {
        $(".czje ul li.chek").removeClass("chek");
        $(this).addClass("chek");
        money = $(this).find("span").html();
        money = money.replace(/[^0-9]/ig,"");
    });

    $("#despoit_but").click(function(){
        if(moneyNum==0){
            moneyNum++;
            disable_button();
            $.post("/weChat/pay.htm",{
                pay:money
            },function(data){
                eval(data);
            });
        }else{
            alert("等待页面加载中，请不要重复操作好不好。");
        }
    });
</script>